package Day27;

public class Level {//  1.5版本之前
    public static final Level LOW = new Level(1);//低级
    public static final Level MEDIUM = new Level(1);//中级
    public static final Level HIGH = new Level(1);//高级

    private int levelValue;//级别
    private Level(int levelValue){
        this.levelValue = levelValue;
    }

    public int getLevelValue() {//构造方法私有化
        return levelValue;
    }

    public void setLevelValue(int levelValue) {
        this.levelValue = levelValue;
    }
}
